//
//  BCsellingView.m
//  BangcaiSale
//
//  Created by lsy on 16/7/13.
//  Copyright © 2016年 Bangcai. All rights reserved.
//

#import "BCsellingView.h"

@implementation BCsellingView
- (void)createView
{
     _logoImg = [UIButton buttonWithType:UIButtonTypeCustom];
    [_logoImg setImage:[UIImage imageNamed:@"添加商品"] forState:UIControlStateNormal];
    UILabel *lab = [[UILabel alloc] init];
    lab.text = @"添加新商品";
    lab.font = [UIFont systemFontOfSize:18];
    lab.textColor = [UIColor colorWithRed:0.197  green:0.277  blue:0.356 alpha:1];
    
    
    [self addSubview:_logoImg];
    [self addSubview:lab];
    
    [_logoImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(0);
        make.top.mas_equalTo(170 *hx);
        make.width.and.height.mas_equalTo(132);
    }];
    
    [lab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_logoImg.mas_bottom).with.offset(20);
        make.height.mas_equalTo(20);
        make.centerX.mas_equalTo(0);
        
    }];
}


@end
